package com.example.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.DevMapper;
import com.example.pojo.Dev;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class DevService extends ServiceImpl<DevMapper, Dev> implements IService<Dev> {
    @Resource
    private DevMapper devMapper;

    //修改
    @Transactional
    public void updateDevice(Dev dev) {
        devMapper.update1(dev.getMsg(),dev.getAddress());
    }
}

